﻿<%@ Page Language="C#" MasterPageFile="~/Manage/MainPage.master"  AutoEventWireup="true" CodeFile="EvaluatesManage.aspx.cs" Inherits="Manage_EvaluatesManage" %>
<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<script type="text/javascript" src="/Manage/Js/EvaluatesManage.js"></script>
<script type="text/javascript">

</script>

<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table" align="center">
  <tr>
    <td align="center">
	<img src="/Manage/Images/sousuo.gif" />评价内容：
      <input name="txtKeyWords" type="text" id="txtKeyWords" size="50" value="<%=keyWords %>"  class="border6"/>
      
	  <input name="btnSearch" type="button" id="btnSearch" value="执行搜索" class="btn2"  onclick="GoToSearch();"/>
	  &nbsp;&nbsp;[ <a href="EvaluatesManage.aspx" class="red bold">查看全部</a> ]	  </td>
  </tr>
</table>
  <br />
<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table" align="center">
  <tr>
    <td colspan="7" align="left" class="HeadTitle">&gt;&gt;商品评价管理</td>
  </tr>
  <tr class="TableHeadRow">
    <td width="80" align="center">序号</td>
     <td width="250" align="center">咨询商品</td>
    <td width="100" align="center">会员账号</td>
    <td width="120" align="center">评分</td>
    <td align="left">评价内容</td>
    <td width="120" align="center">评论时间</td>
    <td width="100" align="center">管理</td>
  </tr>
  <%
      if (listOfData != null)
      {
          for (int i = 0; i < listOfData.Count; ++i)
          {
              GoodsEvaluateInfo e = listOfData[i];    
   %>
  <tr onmouseover="this.style.backgroundColor='#F2F2F2';" onmouseout="this.style.backgroundColor='#FFFFFF';">
    <td align="center"><%=(p.CurPage-1)*p.PageSize +i+1 %>.</td>
    <td align="center">
    <a href="/Show.aspx?GoodsID=<%=e.Evaluate.GoodsID %>" target="_blank" title="点击查看<%=e.GoodsName %>详细信息"><%=Utility.GetMaxString(e.GoodsName,30,true) %></a>
    </td>
    <td align="center">
    <a href="UsersManage.aspx?KeyWords=<%=e.UserName %>" title="点击查看会员信息"><%=e.UserName %></a>
    </td>
    <td align="center">
    <%=e.StarImgsHtml %>
    </td>
    <td align="left"><%=e.Evaluate.EvaluateContent %></td>
    
    <td align="center"><%=e.Evaluate.EvaluateDate.ToString("yyyy-MM-dd HH:mm:ss") %></td>
    <td align="center">[ <a href="javascript:Delete(<%=e.Evaluate.GoodsEvaluateID %>);" class="red">删除</a> ]</td>
  </tr>
    <%} %>
  <tr>
    <td colspan="7" align="center">
	<span class="page" >
         <%=Utility.GetPageLine(Utility.GetWebPageUrlNoCurPage(), p.CurPage, p.PageSize, 10, p.TotalCount)%>        </span>
		 </td>
    </tr>
    <%}
      else
      { %>

  <tr>
    <td colspan="7" align="center"><span class="red">[ 未找到任何商品评价信息！]</span> </td>
    </tr>
    <%} %>
</table>

</asp:Content>